<template>
  <ft-settings-section
    :title="$t('Settings.Subscription Settings.Subscription Settings')"
  >
    <div class="switchColumnGrid">
      <div class="switchColumn">
        <ft-toggle-switch
          :label="$t('Settings.Subscription Settings.Fetch Automatically')"
          :default-value="fetchSubscriptionsAutomatically"
          :tooltip="$t('Tooltips.Subscription Settings.Fetch Automatically')"
          :compact="true"
          @change="updateFetchSubscriptionsAutomatically"
        />
        <ft-toggle-switch
          :label="$t('Settings.Subscription Settings.Fetch Feeds from RSS')"
          :default-value="useRssFeeds"
          :tooltip="$t('Tooltips.Subscription Settings.Fetch Feeds from RSS')"
          :compact="true"
          @change="updateUseRssFeeds"
        />
      </div>
      <div class="switchColumn">
        <ft-toggle-switch
          :label="$t('Settings.Subscription Settings.Hide Videos on Watch')"
          :default-value="hideWatchedSubs"
          :compact="true"
          @change="updateHideWatchedSubs"
        />
        <ft-toggle-switch
          :label="$t('Settings.Subscription Settings.Only Show Latest Video for Each Channel')"
          :default-value="onlyShowLatestFromChannel"
          :compact="true"
          @change="updateOnlyShowLatestFromChannel"
        />
      </div>
      <div class="switchColumn">
        <ft-toggle-switch
          :label="$t('Settings.Subscription Settings.Confirm Before Unsubscribing')"
          :default-value="unsubscriptionPopupStatus"
          :compact="true"
          @change="updateUnsubscriptionPopupStatus"
        />
      </div>
    </div>
  </ft-settings-section>
</template>

<script src="./subscription-settings.js" />
